From: Florian Müllner Date: Sat, 25 Apr 2026 01:21:12 +0000 (+0200) Subject: extensions-tool: Use g_string_free_and_steal() where appropriate X-Git-Tag: archive/raspbian/50.5-1+rpi1^2~9^2^2~27 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e04834322d661113200571d0ca78d855837bbaf9;p=gnome-shell.git extensions-tool: Use g_string_free_and_steal() where appropriate It has clearer semantics than `g_string_free (..., FALSE)`. Spotted by gobject-linter: use_g_string_free_and_steal Part-of: (cherry picked from commit 9edfd22b968b729d92f2098349f803b4c1c23715) --- diff --git a/subprojects/extensions-tool/src/command-create.c b/subprojects/extensions-tool/src/command-create.c index bea190834..00e96cb22 100644 --- a/subprojects/extensions-tool/src/command-create.c +++ b/subprojects/extensions-tool/src/command-create.c @@ -128,7 +128,7 @@ escape_json_string (const char *string) } } - return g_string_free (escaped, FALSE); + return g_string_free_and_steal (escaped); } static gboolean